package com.reebake.ideal.message.config;

import com.reebake.ideal.message.sse.SseEmitterServer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MessageConfig {

    @Bean
    @ConditionalOnMissingBean
    SseEmitterServer sseEmitterServer() {
        return new SseEmitterServer();
    }

}
